package br.com.wepa.webapps.orca.controle.actions.struts;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import br.com.wepa.webapps.logger.TraceLogger;
import br.com.wepa.webapps.orca.controle.ConstantesControle;
import br.com.wepa.webapps.orca.controle.ControleWeb;

/**
 * 
 * @author fabricio.epaminondas
 * 
 */
public  class ExecuteValidAction extends Action implements ConstantesControle {
	/**
	 * Objeto de Log
	 */
	protected static TraceLogger logger = new TraceLogger(ExecuteValidAction.class);

	public ExecuteValidAction() {
	}

	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {		
		return ActionTracer.newActionForward(ControleWeb.mountActionCall(mapping
				.findForward(FORWARD_GO_ACTION).getPath(), request.getParameter(mapping
				.getParameter()),false));
	}

}
